package java10;

import java.util.Scanner;
class MyThread extends Thread {
	   int n;
	   public MyThread(int n){
		   this.n=n;
	   }
		public void run(){
		 for(int i=0;i<=n;i++)
			 System.out.println(i);
		 System.out.println(Thread.currentThread().getName()+" "+isAlive());
	 }
	}
public class Main2 {

	public class Main {
	    public void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        Thread t1 = new MyThread(Integer.parseInt(sc.next()));
	        t1.start();
	    }
	}

}
